/*****************************************************************************
*    UNIONMAN TECHNOLOGY CO.,LID. All Rights Reserved. 2012 Copyright (C)
*
*    File Name:  um_os_task.h
*
*    Description:  
*  
*    History: 
*    Date          Athor                Version                 Reason
*	 ======        ======	            =============	======================
*	              xiaoyuan.cai          Ver 1.0                    Create file.
*****************************************************************************/
#include <stm32_os_list.h>

VOID stm32_list_create(VOID * listhead)
{
    STM32_INIT_LIST_HEAD((struct stm32_list_head *)listhead);
}

VOID stm32_list_add(VOID *node,VOID * list)
{
    _stm32_list_add_tail((struct stm32_list_head *)node, (struct stm32_list_head *)list);
    return ;
}

VOID stm32_list_add_head(VOID *node,VOID * list)
{
    _stm32_list_add((struct stm32_list_head *)node, (struct stm32_list_head *)list);
    return ;
}


VOID stm32_list_del(VOID *node)
{
    _stm32_list_del((struct stm32_list_head *)node);
    return ;
}

VOID stm32_list_destory(VOID * listhead)
{
    _stm32_list_del_init((struct stm32_list_head *)listhead);
}

bool stm32_list_empty(void * listhead)
{
    return (_stm32_list_empty((struct stm32_list_head *)listhead) == 1) ? TRUE : FALSE;
}
 

